// Vuex的导航模块
const navigationModule = {
  namespaced: true,
  actions: {},
  mutations: {},
  state: {
    // 激活路径
    activePath: '',
    // 激活路由对象
    currentRoute: {
      path: '',
      title: '',
    },
    // 存储不重复的历史路由信息
    historyRouteList: [
      {
        path: '/home',
        title: '首页'
      }
    ]
  },
  getters: {
    // 当前激活的导航
    activePath(state) {
      return state.activePath
    }
  },
}
export default navigationModule